package cn.mall.base.constants;

public enum ResultCodeEnum implements Displayable{


    SUCCESS("200" , "操作成功") ,
    Fail("500","操作失败")
    ;

    /**
     * 枚举代码
     */
    private String code;
    /**
     * 枚举显示
     */
    private String display;

    /**
     * 构造函数
     * @param code
     * @param display
     */
    ResultCodeEnum(String code, String display) {
        this.code = code;
        this.display = display;
    }

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String display() {
        return this.display;
    }
}
